﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices.Server;
using MyApp.Data.Resources;

namespace MyApp.Data.Model
{
#pragma warning disable 649
    [MetadataType(typeof(Employee.EmployeeMetadata))]
    public partial class Employee
	{
        internal class EmployeeMetadata
        {
            [Display(ResourceType = typeof(Metadata), Name = "CommonProperties_Name")]
            [StringLength(128, ErrorMessageResourceType = typeof(Metadata), ErrorMessageResourceName = "CommonErrors_StringLength")]
            public string Name;

            [Display(ResourceType = typeof(Metadata), Name = "CommonProperties_Email")]
            public string Email;

            [Include]
            public Department Department;
        }
    }
#pragma warning restore 649
}
